#******************************************************************************
# 
#
#******************************************************************************



#*****************************************************************************
# PURPOSE: 
# USAGE:   
# PASSED ARGS:  
# RETURN ARGS: 
# $sError - Fail Error Message
#*****************************************************************************
class reportBase:
    def __init__(self, title = None):
        self.title = title

    def getTitle(self):
        if self.title:
            return str(self.title)
        else:
            return ''
#*****************************************************************************
# PURPOSE: 
# USAGE:   
# PASSED ARGS:  
# RETURN ARGS: 
# $sError - Fail Error Message
#*****************************************************************************
class reportImage( reportBase ):
    def __init__(self,title,imagefile,caption,width,height,x=None,y=None):
        reportBase.__init__(self,title)
        
		self.img = (imagefile, caption)
        self.form = ( x, y, width,height)
        
    def getImage(self):
        return self.img
    
    def getForm(self):
        return self.form

#*****************************************************************************
# PURPOSE: 
# USAGE:   
# PASSED ARGS:  
# RETURN ARGS: 
# $sError - Fail Error Message
#*****************************************************************************    
class reportText(reportBase ):
    def __init__(self, title ,text = None):
        reportBase.__init__(self,title)
        self.text =  text
        
    def getText(self):
        return self.text 
    


